package com.xnfh.home.viewmodel

import com.xnfh.framework.base.BaseRepository
import com.xnfh.framework.bean.NewVersionHelpMessageBean
import com.xnfh.framework.bean.RespStateData
import com.xnfh.framework.bean.TidingBean
import com.xnfh.network.manager.ApiManager

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2024/1/4 14:10
 * @UpdateUser: ziheng
 * @UpdateDate: 2024/1/4 14:10
 * @UpdateRemark: 更新说明
 */
class MessageViewModelRes : BaseRepository() {
    suspend fun requestMessageOrOther(type: Int, data: RespStateData<List<TidingBean>>) = dealResp(
        { ApiManager.api.requestMessageOrOtheere(type) }, data
    )
    suspend fun requestMessageList(page: Int,type: Int,data: RespStateData<NewVersionHelpMessageBean>) = dealResp(
        {ApiManager.api.requestMessageList(page,type)},data
    )
}